package com.learn.hibernatevalidator.chapter06.crossparameter;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * @author: liyf
 * @create: 2025-01-15 23:16
 **/
@Constraint(validatedBy = ConsistentDateParametersValidator.class)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ConsistentDateParameters {

    String message() default "{org.hibernate.validator.referenceguide.chapter04.crossparameter.ConsistentDateParameters.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
